﻿<Window x:Class="P2.Cuberry.Framework.Helper.P2YellowDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:basec="clr-namespace:P2.Cuberry.Framework.Helper"    
        Icon="/P2.Cuberry;component/Images/CuberryIcon32.ico"
    Height="300" Width="500">
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="44" />
            <RowDefinition Height="194*"/>
            <RowDefinition Height="24" />
            <RowDefinition Height="24" />
        </Grid.RowDefinitions>

        <TextBlock Name="lblTitle"  Text="{Binding DialogTitle}" FontSize="18" Padding="0" Margin="12,0" />
        <DockPanel Grid.Row="1" Margin="12,0">
            <TextBlock DockPanel.Dock="Top" Name="lblBody" Text="{Binding DialogBody}" FontSize="14" Padding="0" Margin="0" />
            <ListBox DockPanel.Dock="Top" Grid.RowSpan="2"  Name="Messages" ItemsSource="{Binding MessageStack}" DisplayMemberPath="MessageText" HorizontalAlignment="Stretch" BorderThickness="0" />
        </DockPanel>

        <Button Grid.Row="2" Margin="62,1,0,0" Name="okBtn" MinWidth="150"  Click="okBtn_Click" Content="{Binding OKBtnText}" HorizontalAlignment="Left" Width="150" />
        <Button Grid.Row="2" Margin="0,1,47,0" Name="cancelBtn" MinWidth="150" Click="cancelBtn_Click" Content="{Binding CancelBtnText}" HorizontalAlignment="Right" Width="150" />

    </Grid>
</Window>
